#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->pushButton, &QPushButton::clicked, this, &MainWindow::RunTest);

    RunTest();
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::RunTest()
{
    ui->tableView->addnormal("Normal");
    ui->tableView->adderror("Error");
    ui->tableView->addprogress("Progress");
    ui->tableView->addsuccess("Success");
    ui->tableView->addfailure("Failure");
}
